02-Use of if and else using boolean expressions.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

#Use of Boolean Variables


def login():
          seatbooked=True
          if seatbooked:
              print("Seat is booked")
          else:
              print("Seat is still available")
                    

Try it yourself